/*
 * @Author: chenwenjie
 * @Date: 2021-01-07 23:13:25
 * @LastEditTime: 2021-07-15 17:00:04
 * @LastEditors: chenwenjie
 * @Description: 
 * @FilePath: \yunketang\vue.config.js
 */
module.exports={
    //更改主题色
    css: {
        loaderOptions: {
            less: {
                lessOptions: {
                    modifyVars: {
                        'primary-color': '#00cf8c',
                        'link-color': '#00cf8c',
                        'border-radius-base': '2px',
                        'border-color-base': '#00cf8c',
                    },
                    javascriptEnabled: true,
                },
            },
        },
    },
    devServer:{
        open:true,
        //配置代理
        proxy:{
            //假如我们的接口没有统一的前缀，我们手动补一个前缀
            "/api": {
                target: "http://wkt.myhope365.com",
                changeOrigin: true,
                // 通过这个属性配置，去掉/resful
                // http://tingapi.ting.baidu.com/v1/restserver/ting...
                pathRewrite: {
                    '^/api': ''
                }
            },
        }

    }
}